/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlador.envioCorreo;



import javax.mail.PasswordAuthentication;


    class SMTPAuthentication extends javax.mail.Authenticator {

    @Override
    public PasswordAuthentication getPasswordAuthentication() {

            String username = "pruebasdecorreo@carmenyprendimiento.es";
            String password = "123456789";
            
            /*String username = "sgt@s352707365.mialojamiento.es";
            String password = "joselito";*/
            return new PasswordAuthentication(username, password);

        }
    }
